<template>
<div class="wrapper">
  <div class="content">
    <div class="panel" v-for="(item,index) in listData" :key="index">
      <div class="title">{{item.name}}，{{item.sex == 1 ? '男' : '女'}}，{{item.age}}岁</div>
      <div class="desc">2024年2月13日,持续发热</div>
      <div class="checkbox" @click="toPage('/pages/meeting/index')">开始会诊</div>
    </div>
  </div>
  <!-- <div>
    <button class='btn-max-w' type='primary'  @click="toPage('/pages/aiDoctor/index')">开始问诊</button>
  </div> -->

</div>
</template>

<script>
	import request from '../../utils/request'

export default {
  components:{
  },
  data() {
    return {
      listData:[]
    }
  },
  async onLoad() {
    this.joinList()
  },
  methods: {
    async joinList(){
      const resData = await request('api/meeting/meetingList', 'post');
      this.listData = resData.data
    },
    toPage(url){
      uni.navigateTo({
        url: url
      });
   }
  }
}
</script>

<style lang="scss" scoped>
.search-text {
  color: #0094FF;
  margin:10upx 0 0 30upx;
}
.wrapper {
  display       : flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 15upx;
  padding-bottom: 50upx;
  .search {
    border-bottom: 1upx solid #E9E9E9;
    padding: 40upx 0;
    margin: 0 10upx;
    display: flex;
    align-items: center;
    .search-input {
      width: 540upx;
      color: #0e0e0e;
      border: 1upx solid #66C2FF;
      display: block;
      height: 80upx;
      background-color: #F0F9FF;
      border-radius: 40upx;
      padding-left: 40upx;
      margin-top: 15upx;
      color: #000000;
    }
    
  }
  .content {
    background: #FFFFFF;
    box-shadow: 0upx -8upx 40upx 0upx rgba(0,73,126,0.1);
    border-radius: 60upx 60upx 0upx 0upx;
    padding: 30upx 40upx;
    margin-top: 40upx;
    .panel {
      border-bottom: 1upx solid #E9E9E9;
      position: relative;
      padding: 30upx 0;
      font-size: 30upx;
      .desc {
        font-size: 24upx;
        margin-top: 10upx;
      }
      .checkbox {
        background: #0094FF;
        position: absolute;
        border-radius: 60upx;
        top: calc(50% - 16upx);
        right: 0;
        border-radius: 15upx;
        color: #fff;
        padding: 10upx 30upx;
      }
    }
  }
  .btn-max-w {
    background-color: #0094FF;
    border-radius: 130upx;
    width: 600upx;
    margin-top: 80upx;
    color: #fff;
  }
}


</style>
